package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.dto.DishDTO;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.vo.dishPageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜品持久层接口
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    /**
     * 根据条件查询所有
     * @param name
     * @return
     */
    List<DishDTO> findAll(String name);
}